<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <title>红票列表</title>
</head>
<body>
<div th:fragment="tableBlock" class="widget-content">
    <div class="table-responsive">
        <table id="datatable" class="table table-striped data-table table-bordered" width="100%">
        <thead>
        <tr>
            <th class="table-head" id="redInvoiceNo">红冲票号</th>
            <th class="table-head" id="blueInvoiceNo">蓝色票号</th>
            <th class="table-head" id="serialNo">开票流水号</th>
            <th class="table-head" id="redInfoNo">红字信息表编号</th>
            <th class="table-head" id="deductibleAmount">扣除额</th>
            <th class="table-head" id="invoiceTotalPrice">合计金额</th>
            <th class="table-head" id="invoiceTotalTax">合计税额 </th>
            <th class="table-head" id="invoiceTotalPriceTax">价税合计</th>
            <th class="table-head" id="invoiceEndTime">开票完成时间</th>
            <th class="table-head" id="invlidFlg">是否作废</th>
            <th class="table-head">操作</th>
        </tr>
        </thead>

        <tbody>
        <tr  th:each="invoice : ${formBean.pInvoiceRedList}">
            <td class="table-content" th:text="${invoice.invoiceNo}"></td>
            <td class="table-content" th:text="${invoice.originalInvoiceNo}"></td>
            <td class="table-content" th:text="${invoice.serialNo}"></td>
            <td class="table-content" th:text="${invoice.redInfoNo}"></td>
            <td class="table-content" th:text="${invoice.deductibleAmount}"></td>
            <td class="table-content" th:text="${invoice.invoiceTotalPrice}/100"></td>
            <td class="table-content" th:text="${invoice.invoiceTotalTax}/100"></td>
            <td class="table-content" th:text="${invoice.invoiceTotalPriceTax}==''?'':${invoice.invoiceTotalPriceTax}/100"></td>
            <td class="table-content" th:text="${invoice.invoiceEndTime}"></td>
            <td class="table-content" th:switch="${invoice.invlidFlg}">
                <span th:case="0">无</span>
                <span th:case="1">有</span>
            </td>
            <td>
                <div class="td-operate">
                    <a href="#"  th:onclick="'javascript:invoiceVeiwSubmit(\''+${invoice.guid}+'\',\'red\');'"  class="td-info">发票预览</a>
                </div>
            </td>
        </tr>

        </tbody>

    </table>
    </div>
</div>

</body>
</html>